package com.itheima.Daome01.demo01.arrys;

public class Test01 {
    public static void main(String[] args) {
        int getsum = getsum(1, 2, 3, 6, 5);
        System.out.println(getsum);

    }


    public static int getsum(int...arr){
        int sum = 0;
        for (int i = 0; i < arr.length; i++) {
            sum = sum +arr[i];


        }return sum;
    }
}
